TUD
Artwork by Allison Horst
Quarto
grateful::cite_packages(output = "table", out.dir = ".") |> kableExtra::kable() grateful::cite_packages(output = "paragraph", out.dir = ".")
```{r} #| label: example-code-chunk #| output: true #| warning: false #| code-line-numbers: true library(tidyverse) library(palmerpenguins) data(penguins) subset <- penguins |> filter(island == "Dream") ```
When you want to use results from a code chunk directly in the text, you can use this syntax:
` r 1+1`
penguins |> ggplot() + geom_point(aes(x = bill_length_mm, y = bill_depth_mm, col = species)) + theme_classic()
penguins |> ggplot() + geom_point(aes(x = bill_length_mm, y = bill_depth_mm, col = species)) + theme_classic() + labs(x = "Bill length (mm)", y = "Bill depth (mm)", col = "Species", title = "Penguin bills", caption = "Data source: {palmerpenguins}")